export default [
  {
    path: '/user',
    layout: false,
    routes: [
      {
        path: '/user',
        routes: [
          {
            name: 'login',
            path: '/user/login',
            component: './user/Login',
          },
        ],
      },
      {
        component: './404',
      },
    ],
  },
  {
    path: '/',
    redirect: '/dashboard',
  },
  {
    name: 'dashboard',
    icon: 'PieChartOutlined',
    path: '/dashboard',
    component: './Dashboard',
  },
  {
    name: 'users',
    icon: 'TeamOutlined',
    path: '/users',
    component: './Users',
  },
  {
    name: 'goods',
    icon: 'ShopOutlined',
    path: '/goods',
    component: './Goods',
  },
  {
    component: './404',
  },
];
